<?php
require 'JSONQuery.php';

$link = new mysqli ( 'localhost', 'root', 'fred' );

$jquery = new JSONQuery ( $link );

$flexJSON = '[
{"table":"contacts","objectName":"name","objectValue":"Jonnie","database":"test","tableKey":"id","objectKey":"8"},
{"table":"contacts","objectName":"name","objectValue":"Sue","database":"test","tableKey":"id","objectKey":"9"},
{"table":"contacts","objectName":"name","objectValue":"Hannah","database":"test","tableKey":"id","objectKey":"10"},
{"table":"contacts","objectName":"name","objectValue":"Lauren","database":"test","tableKey":"id","objectKey":"11"},
{"table":"contacts","objectName":"name","objectValue":"John","database":"test","tableKey":"id","objectKey":"12"},
{"table":"contacts","objectName":"name","objectValue":"Rio","database":"test","tableKey":"id","objectKey":"13"},
{"table":"contacts","objectName":"name","objectValue":"Tyrrell","database":"test","tableKey":"id","objectKey":"14"}
]
';

$jquery->dump ( $jquery->buildQuery ( $flexJSON, 'INSERT', true ) );
?>